package com.etms.controller;

import com.etms.pojo.AccountAdmin;
import com.etms.service.AdcService;
import com.etms.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("adc")
public class ADController {
    @Autowired
    AdcService adcService;
    @GetMapping("getlist")
    public Result getlist(){
        return adcService.getList();
    }

//    updatePrice
    @PostMapping("updatePrice")
    public Result updatePrice(@RequestBody AccountAdmin accountAdmin){
        return adcService.updatePrice(accountAdmin);
    }
}
